package com.b2j.main;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class GenerateManifest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		if (args.length == 0) {
			System.out.println("You must specify temporary path.");
			System.exit(1);
		}
		
		String manifestFile = args[0] + "/META-INF/MANIFEST.MF";
		
		try {
			BufferedWriter bw = new BufferedWriter(new FileWriter(manifestFile));
			
			bw.write("Manifest-Version: 1.0\n");
			bw.write("Class-Path: .\n");
			bw.write("Main-Class: Launcher\n");
			bw.write("\n");
			bw.write("\n");
			
			bw.close();

			
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
